<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('新增邮件发送记录')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-fantasySendEmailLog-add">
			<div class="form-group">	
				<label class="col-sm-3 control-label">邮箱地址：</label>
				<div class="col-sm-8">
					<input id="address" name="address" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">邮件类型 1：邮箱激活：</label>
				<div class="col-sm-8">
					<input id="emailType" name="emailType" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">邮件内容：</label>
				<div class="col-sm-8">
					<input id="emailContent" name="emailContent" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">邮件模板：</label>
				<div class="col-sm-8">
					<input id="emailTemplate" name="emailTemplate" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">发送状态 0：未发送；1：已发送；2：发送多次失败：</label>
				<div class="col-sm-8">
					<input id="emailStatus" name="emailStatus" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">发送次数：</label>
				<div class="col-sm-8">
					<input id="sendCount" name="sendCount" class="form-control" type="text">
				</div>
			</div>
		</form>
	</div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "fantasy/fantasySendEmailLog"
		$("#form-fantasySendEmailLog-add").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/add", $('#form-fantasySendEmailLog-add').serialize());
	        }
	    }
	</script>
</body>
</html>
